package cn.lili.modules.goods.mapper;

import cn.lili.modules.goods.entity.dos.GoodsHotPopular;
import cn.lili.modules.goods.entity.dto.GoodsHotPopularDTO;
import cn.lili.modules.goods.entity.vos.GoodsVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 爆款商品 Mapper 接口
 * </p>
 *
 * @author author
 * @since 2024-02-27
 */
public interface GoodsHotPopularMapper extends BaseMapper<GoodsHotPopular> {


    /**
     * APP分页获取新品爆款商品列表
     * @param page
     * @param dto
     * @return
     */
    Page<GoodsVO> getHotPopularGoodsAppList(Page page, @Param("dto") GoodsHotPopularDTO dto);

    /**
     * PC端-分页获取新品爆款商品列表
     * @param page
     * @param dto
     * @return
     */
    Page<GoodsHotPopular> getHotPopularGoodsPageList(Page page, @Param("dto") GoodsHotPopularDTO dto);

}
